package cn.stylefeng.guns.modular.recommend.mapper;

import cn.stylefeng.guns.modular.recommend.entity.TaoRecommendGoods;
import cn.stylefeng.guns.modular.recommend.model.params.TaoRecommendGoodsParam;
import cn.stylefeng.guns.modular.recommend.model.result.TaoRecommendGoodsResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 推荐商品 Mapper 接口
 * </p>
 *
 * @author lcw
 * @since 2019-11-18
 */
@Repository
public interface TaoRecommendGoodsMapper extends BaseMapper<TaoRecommendGoods> {

    /**
     * 获取列表
     *
     * @author lcw
     * @Date 2019-11-18
     */
    List<TaoRecommendGoodsResult> customList(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author lcw
     * @Date 2019-11-18
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author lcw
     * @Date 2019-11-18
     */
    Page<TaoRecommendGoodsResult> customPageList(@Param("page") Page page, @Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author lcw
     * @Date 2019-11-18
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    void addGoods (@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    void addrecommendGoods(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    void deleteByTime (@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    List<TaoRecommendGoodsResult> getIndexGoods(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    List<TaoRecommendGoodsResult> getGoodsById(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

    List<TaoRecommendGoodsResult> getGoodsByType(@Param("paramCondition") TaoRecommendGoodsParam paramCondition);

}
